FROM busybox

WORKDIR /monitor

COPY ./monitor.sh .

RUN adduser -DHs /bin/sh example \
    && chown -R example /monitor \
    && chmod +x ./monitor.sh

USER example

CMD [ "/monitor/monitor.sh" ]